// base-style
import './assets/anim.scss'
import './assets/base.scss'
import './assets/layout.scss'
import './assets/widget.scss'
import './assets/main.scss'
import './assets/debug.scss'

import { createApp } from 'vue'

// fort-awesome
import { library } from '@fortawesome/fontawesome-svg-core';
import { faUser, faLock } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
library.add(faUser, faLock);

// element-ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 重新设置 element-ui 的参数值
// import './assets/element-variables.scss'

// some extended vue-components
import widget from './widget'
import './widget/widget.scss'
import commons from './components/common/installer.js'

// router
import router from './router'
import MenuManager from "@/starter/menu-manager.ts";

// initialize setting
import initialize from './starter/initialize'

// index-page
import App from './App.vue'
const app = createApp(App)

// 禁用开发工具
app.config.devtools = false;

// register fort-awesome
app.component('FontAwesomeIcon', FontAwesomeIcon);

// register element-plus
app.use(ElementPlus)

// register router
MenuManager.pushMenus(router);
app.use(router)

// register widget
app.use(widget)
app.use(commons)

// start...
app.mount('#app')

